Fixed membership test after adding uniqe columns