Fix a bunch of stupid mistakes.