fix unlock error