Fixed filter-rt to handle intervening non-terminal