Fix bug with progress reporting