bug fixed for unlock flash