Fixed fields and results check in get_hashes

Bug and fix submitted by blowcane