fix a bug when -a and/or -b option is not specified.
fix a bug when -n option is specified.