Fixed negative exponents.

All current test cases pass.