Bugfix re type cell: used wrong variable, so cell info would not be retrieved.