fixed bug in prims