Fixed bug adding/removing animations while inside the render loop.