added non-threadsafe Clear (for tests), fixed Fetch