fix for animation initialization