Fixed Replication Queue Issue

Fixed an issue that was causing the replication queue to stop running