fixes a bug displaying the map