fixed a bug with varargs