fix Mat release