fix lock not removed from local storage