fix null reference to cell
update dist