semilinSetNdd: simplified and fixed bug with offsets...