Correct spelling/declaration errors