bugfix for location modal popup