Fix: possible index out of bounds
Fix: crash when removing animations