Correct minor bug , tag was always set to -1 , now it takes the correct tag value