fixed bugs on map.erb template