I SOLVED IT!
The problem was AUTO CALCULATE BONE LENGTH and BONE ANGLE. Once I turned that off and manually set the lengths of the bones it works!