Corrected bug when preparing list of cells that need to be exported