fixed aligning using offsets larger than frequency resulting in arrays of different lengths