fix use of hashcompat