fixed the function animationstate not getting parameters