Fixed some slight errors that made the code uncompilable.