fix bug on map and rate