fix map generator