fix typo for if