Bug fix for boundary voxels.