Fixed map generation bug