fixed bug in stretching step-arrays