corrected discontinuity handling at bounds in visibility system