Fixed bug with preferences.

This was me derping pretty hard. I'm not really sure why it ever
worked.