Fixing the search for access conditions.
Closes #337