Fixed bug in _fetch function