fixed bug #4.

use group_tag to be doc_id.