fix lock provider to work anytime it is run