Updated the HashFactory

I believe the problem stems from the wrong attributes being check every
time.