lock on page load not working on heroku