Fix progress reporting bug