issue #2771: fix warning log and fix typo.