fix unlock issue