fix lock error