fix bug of detect gtags process