intersection bug fix