Fixed a misuse of varargs API