Fix the last_fetched and repo commands