fixes issue #256 - relating to using the "replace" marker