Actual fix for dialog
Better localstorage test