fix enforce_phase_suffix code