Fixed bug in open_file()