fix key frame animation weirdness