Fixed a bunch of errors