Memento crash fixed when the maximum size was hit