fix break with empty localStorage