Fix unsequenced modifications (Bug #3179).