Fixed a bug with the calls to gethash.