Fixed up initialization of sum tables.