Fix some typos

These causes to reference undefined variables or functions.