Fix saving to browser storage