Fixed animation errors.