bugfix on map generation, Fixes #11