fix error in intersection