fix some code typos (compiler warnings)