Fixes #1

- added missing call to init()
- flipped if/else for short-circuit