check in Javawa the ID’s . if two maps have the same ID such a problem may happen.To change the ID of a map, you can use gmaptool. In gmaptool the ID is called FID (File identifier).