Fix bug in tracking initialization code