fix firefox map bug