Made the default value of version in @State to 1.
Cleaned away method setDefaults + version in @State.