fixed linmath errors popping up

linmath(warning): Tried to invert singular LMatrix3.