Fix typos detected by cppcheck