fix two warnings regarding hash function signature