fix output_ref store