Using .apply() to call progressCallback

This was necessary to fix error thrown by Air 3.8 compilation.