Fix bug with maven