fix animation update bug