fixed bug in find_file