Fixed bug where plugin stopped replacing