Fixed a slew of errors.