Fixed the issue and prims work now