fix location dialog issues