Fixed comparison in finding voids