Fixed animation stop bug.