Fix error with add button not giving dialog.