Use the Liquid template 'assign' instead of 'capture'.