fix remove lock