fixed hashing on osx