fixed argc logic error