Copy the OutParam to avoid segment fault