fix flash count