Fix removing first element from arguments array via splice