Invalid cast exception in the editor

I just added another GameObject variable to my network behaviour script and now It doesn’t show anything about that script in th editor and when I try to expand it I get 11

InvalidCastException: Specified cast is not valid.
Unity.Netcode.Editor.NetworkBehaviourEditor.RenderNetworkContainerValueTypeIEquatable[T] (System.Int32 index) (at Library/PackageCache/com.unity.netcode.gameobjects@1.6.0/Editor/NetworkBehaviourEditor.cs:146)

Errors.
Netcode 1.6.0

I entered and exited play mode and now it’s fine