fix the bounding of map