Fix argument handling in sub method

The switch on arguments.length incorrectly tested twice for 2