Fixed a bunch of broken shit.