fix custom group error
Merge pull request #1026 from yashodha/fixes

fix custom group error