matrix fix