Fix my silly mistakes

- fix typo
- fix conditional statement