fix typo in class constructor