Bugfixing in assemble2d with nearest neighbor interpolation