fix check on number of arguments

fix trivial bug that potentially make all builds to get stuck..