fix a autocomplate bug