fixed animations not working right