Fixed a bunch of sign errors.