Fixed source ref when parsing filtered query