Fixed a few things messed up by script mistakes.