patch for Autocompletepopup compatibility