fix typo in init code