fixed buggy animation