Fix in targetFunctionValue