fix download_index 500 when app has errors