Fix options bug

`options` could be undefined when it's referenced in `this.options`