Fix BUGs of animation idle setting functions