Fixing errors with pom