fix argument sanity check when -s is specified