Fix Lock/Unlock Error