Fix incorrect cutting range when using speed scaling.