Fix intersection bug