fixed validation bug for discard