Fixed InvalidArgumentTypeException constructor