bug in pom after refactoring main