fixes #506 - don't store invalid group