Fix hub.c errors.