fix bug from assumption that tracker ID will always roll over to zero (doesn't hold when numtrackers is not power of 2)