Fixed memory leak when calculating cell heights by using one offscreen cell