Fixed some mistakes that broke compiling.