fix location protocol dialog bugs