Fix some stupid mistakes, it compiles now.