fixed a bug in which intersected distance was not returned with the t parameter