Fixed bug in hash that didn't return this for small inputs