Fixed silly errors that I forgot to test.