Fixed transferProgressCallback.
Merge pull request #288 from Pamelloes/master

Fixed transferProgressCallback.