fix cal & flash & events