Fixed bug - was using nBasis not nDOF