correct a complie error in MapGenerator.java