Update pgReplication.py

Fixed Bug on workflow replication