fixed bug with unused paths