bug fix

where number of voxels on boundary surfaces are not updated.