fixed bug with import code of custom hash function