fix a bug for editing without group type