Latch 5 Fingerprint - Fix Battery Compartment

Need to fix an issue with battery coming loose and causing keypad to stop working. The fingerprint and app feature works but keypad stops working no one can use code… You open battery cover and push batteries and it comes back to life. But a few more open and close door, and it comes loose again.