stupid mistake, fix issue with not checking argument count
Weird was that it worked in command line mode.

 Committer: Adam Liverman <livermana@gmail.com>