fix write to pom.xml file