Have you verified that your x-axis (or whatever) is pointing Down the joint heirarchy? These can get skewed easily and may need reset several time throughout the rigging process.