Fixing issue where remote hostname setting could not be cleared.