It turns out that when the preferences do not exist, some things go
wrong. That's fixed now. Added documentation.