fix location dialog and settings dialog interact issue