fix -a option bug