Fix filtering for referal column