fixed animation not working bug