fix typo, missing then for if