fixed bug when unloading deleted items
refactored user settings