fix bug + args.length === 0 case