fix a bug for all the path