fix animation scaling issue