fix closing of groups
fix autoclosing issue