fix capture generator