Fix replace all and queue a mutation record