bug fix in prim