Fix options undefined error