Fixing little things.

Mostly weird errors that make me feel stupid for not seeing.