fix bad lock