Fixed wrong use of file open