fix typo and warning on startup