bugfix in detecting no args