Minor fix for flaw in if/else if/else logic of Phase class. No functionality changed.