Fix file constructor with file instance