Fixes filename_dir