fix a error in tracklentgth