Fix bug in maven plugin