Bugfix in take()

Failed to modify progress bar in previous commit