fix bug in map when plot resize