Fix an error when setting an endpoint type from null didn't show in UI until reload