Fix bugs: an object variable cannot be assigned with a new value