Fix bugs to get total traffic working.