Fix slugification and references to groups