fix mergings groups in scoped