Fix bug that prevented editing secrets.
Fix bug in displaying selected category while editing secret.