fixed -a bug