fix broken computation of nchunks in makeCon