Fixed issue where options is `undefined`