resolve bug in LocationController