Fixed error in the terrible r integral to get phi