fix a bug that fails to check number of args w/o options