Fix if options is undefined