Write-hashtbl hashstore: collision detected

It should be fixed with these changes: