fix a bug about the path