fix bug in download tracking