Also correct outut of hash when length is 0