Fixes problem with Var and Out parameters