Fixed options being undefined