Fixing animations loop