Fixed bug with auto redraw on setOptions