fix setHashFunction for default value: null