fix a bug related to unused paths
fix a bug related to unused paths