Fix fetch out of memory