ide: fix migration in the middle of pio operation