Fixed a bunch of struct bugs.