fixed cell to mat issue