fix issue when a functionProxy is used as parameter