Fixing replace
Merge pull request #112 from tenach/master

Fixing replace