Fixed matrix.save method