fix safari bug with selecting on the map