fixed plane intersection bug