fixed bug if lock_code = 000