If you select your joints and go into component mode and then select miscellaneous. You can change the Z,Y and X location for every joint and change it, so that everything is pointing at the right direction.