fix flash drawing