Fixes some matrices