Fix uninitialized variables in prefs

Closes #6.