Fixed some dumb mistakes