it doesn't work on line 586 if you never assign `_file` in this `if` block.