I think the problem is, that space where no echo is received by the scanner, is not marked as free. Have a look at the documentation of the ~maxRange parameter and try the proposed setting maxUrange < maximum range of the real sensor <= maxRange. But as far as i know, this depends on the scanner reporting readings of max range and not zero or NaN for beams where no echo is received.