Fixed open_file