fixed bug with varargs