- fixed uniqueTid logic - patch by Edward-San.