Auto patch hips/leg problem

When I auto patch the left leg to the hip, the upper leg goes under the waist but it needs to be in front but I don’t know what to do. I have an overlay module to it can pass over but it doesn’t work.

Check this out: