fixed some glitches caused by the new autocomplete