Correlation with track correction weighting code fix