Fix leak in dialogs, and correct name of options button.