Fixed a leak that creates too many cells.