ToLock method fixed
R#