Fix matrix