fix(userPreferencesModal): fix bug that broke functionality of user pref...

...erences modal

Closes #274