fix bug during maven build.