bugfix for nx,ny,nz different