Fix bug of always generating same five peer-ids and pg_delays