Correct icode and edep sequence.