mask manager : fix grouping bugs

another fix about shape removing in sub-groups
fix the add exist feature
fix shape parameters when grouping