Local storage errors fix