fixed animation issue