fixed broken preferences