fixed bug in in-area test