fix typo on if