Fixed a few quick bugs.