lock on page load not working on heroku trying again