fix typo and initialization order