Fixed a few stupid mistakes