[fix bug 991553] excluding invisible groups from UI

Nevermind, I was looking at different code. That's needed.