Fixed buggy animation