fixing animation deletion