Fixed setting the pinging flags at start.

Related to issue #233

(cherry picked from commit d5ff4c9ce34e348866381ba26c0a58da242242cc)