attempt to fix empty preferences object bug