Fixes a variable argument crash if an incorrect number of arguments are passed in