Fix a bug for path