fixed intersection bugs