corrected logic for contributing beams close to on-edge rays.
See line 154-181 in the lower beam contribution calculations on de