Fix logic on getting value parameters.