Removing double 'matrix' entry