fixed bug with setOptions() not overwriting recently set values