HI, i figure out how to fix that annoying problem, I know for sure many people has been bothering by this trouble.it's easy remove the black shield on the right side of the camera remove five screws, each one has a different size, after that unplug the camera ribbon form the main board and remove the camera from the iPhone after that just put a tape or any kind of adhesive in the golden part leaving only a little part on the edge without adhesive, then place the camera and all the parts in the right place, you are done!!!!!
I've done it in over 5 iPhones and all had worked, I hope that's resolve and help everybody.