fixed parent directory openning bug