Mapgen work. Crashfix