code format, fix download bug