bugfix #249 locations loading in endless loop