fixes animation time