fix uncomment storing last fetched id