Fix bug that was leading to multiple password dialogs at program startup.