Remove loop from init_replset