Group listing again

Funny I can't reproduce bug 880016 in sqlite but I shouldn't have missed that anyway :) I guess we're both in a far from perfect coding shape @sancus :P: Here is a fix of the fix.