fixed bugs in animations

Now it won't draw unplayed animations