bug fixed about activate auto-complete-mode