fix location remove problem