fix map occupancy count bug