fix cornercase with IN/NOT IN constraints