Fixed state deserialization: now update var transform too