Fixed error when saving and loading animations