Fix bug in pom updater