fix bug about trigger auto-complete