Map generation fix