fixed errors for hubMatrix and hubcounts