fixed animation bug