It might be that your vectors in the cross product are not three dimensional. Check this post and this answer: