Fix cancel on file open