fixed animation rate bug