fix bug in get_files_vec method