Fixed generation of two phi's following same path.