fixed bug in view_file_via_shared_dir