fixed bug with number of positional arguments