Fix error introduced with custom hash key comparators