fixed bug with setting default preferences