fixed bug in internal access conditions testing for indexing