corrected bug in args parsing