Make sure that your lock is intact when you are doing the maintenance: check for any loose pieces and tighten them, like a screw or even the door hinges, and also make sure to look for missing pieces. If some of the screws are loose, the lock will not work as it should.  This is dangerous – not just for your locks, but also for your family’s safety.