fix animation (don't know how it work(don't know why it did't  work))