dirty workaround, sometimes auto-grouping causes group without leaves which causes an Exception, which we do not want