Fix typos and errors