Code

Fix some bugs introduced by the preferences rewrite.