fix a bug in parfor occlusion