Fixed bug in replicator example program