The error is you are not integrating in the correct direction. You are integrating with respect to , but you should be integrating with respect to the tangent vector to the sphere at each point, or more specifically, the arc length. I am not good a drawing pictures, but this website should help you understand what I am talking about: (link).