fixing the map/bar interraction