setOptions fix