discard invalid tasks