Fixed the bug for group open. Insert and close component correctly.