fixed animation pause issue