fix lock remove last time