Fixed 'ReferenceError: options is not defined'