Fix Phase class definition.