Fix bug in intersection calculation