fixed a bug in compressed_dir