fix preferences migration
