Fix up a few simple bugs and set default preferences on create