fix lock when not exist