Corrected bug in number of given args to script