fix location delete problem