Fixed bug with map rendering