update patch for autocomplete