fix bug that could not show map on the safari