[fixed] exception in InMemory classes