fix a bug about a missing path