Fixed unlock bug.