Fix for replacing multi occurences of [%CurrentObject%]