Fixed issue with empty hashes.