fixed bug with -A