Fixed some compilation errors due to typos