Bugfix (nDims2 used uninitialised?)