fixed pointer for prev in insert middle