Fixed bugs for updating new variable bindings.