fix typo casting