Correcting codepaths in pom