fix edit location issue