fixed mst prim checker