Fix for dialog options bug