fix surface mode in extend_cell_data()