Fix bug of tracking errors