core: rearrange queue when replace ayame element