fixed proxy params replacing

Proxy mode didn't work yet. $1 wasn't replaced with regex patterns.