fixed bug for querying an AS which used to exist but now doensn't