Fixed bug in mat3.