Fixed compile error and spelling mistake.