fixed multiple sample/multiple tag issue