fix discard group editing resets values