Fix bugs, add profile in pom.xml