fixing the setting of the replication privilege