fix tagging flag on elastic search