Resolved errors of Prototype/Mat.cs