Fix a bug that index flags aren't separated with "|"...
Update sample