Fixed another bug in the Theta function, one last bug to find...