fix return of hash num elements