Fixed a bug in the animate command taking a reference to a temporary string.