missing part after _SetOptions revert. fix a possible null ptr dereference