Bugfix in prehash