resolved empty gallery_dir