fixed intersection bug