Fix ladder intersection check