Fix NameError on Update command