Fixed a bug in pom.py