Filter erroneous paths