Fix OutParam destruction issue