fix reading items from localStorage