Fix a bug in scene intersect