fixed the tag auto-complete bug