commit changes before fetching