Fixed syntax errors in downloadData()