Fix the case that wrong number of arguments are passed to Ruby side from JS