Fixed the `setOptions` method, where the wrong variable has been used.