Fix ridicurous miss slowing the code

I only mistaked ofs < offsets(ii,jj)...
This makes code over 100 times slower.