Fixed new file open bug