fixed a bug for parent dir references