fixed some bugs on the map (part 1)