Fixed some mistakes; sleepy coders should go to bed sooner.