Fix displaying incorrect total count