solve map resize bug