fix listing counts (bug 1042297)