Coding for prevention of wrong insertion