Fixed bug in hash conversion.