Fixed create and edit group bug