Local checks in findPrevious were not skipping brackets correctly (further fix for bug #337)