Clear local storage correctly