Fixed a bug with multiple replacement effect.  The bug appear with the fix of #198 and #196