Fixed recording when starting animation.