Problems with anchorpoints when creating a joint

I have an object that when it collide create a joint between itself and the other object. To set the anchorpoints I use the localpoints from the contact, localpoint1 for body1 etc. This works fine with circles but when it collides with boxes it seems as if the anchorpoints get switched.

If I use localpoint2 for body1 however, boxes work fine but circles get the problem instead.

Here's a picture that might help:
Image
Blue is the joint and red symbolizes the anchorpoints. The bottom example is how it should be in all cases..

This is in 2.0.0 by the way.
Hmm, I wonder if this might help you:

http://box2d.org/forum/viewtopic.php?f=3&t=351

Original thread: https://box2d.org/forum/viewtopic.php?t=352