Magnetic field due to an infinitesimal current element at a point is ⊥to the element and not to the position vector of point wrt the element.