Updated intersection to fix bug.