prim delete mid fix