the local rotation axis are messed up on the joint. go in component mode and choose the compnent axis option and straighten it out. [see the docs]