Fix option dialog can't be opened.