fix a error in _file method