Remove bad "IsLocked" function call