fix bug in get_file