Fixed syntax error in _format_phi.