Fixed bug replacing all modifiers, not just the first.