fix capture=True