Fixed a few small bugs.

dkfs;lajdg;lk