fixed api.download method
1.0.2