Fixed bug in calculating n2 from n1 with a non-unit stride