Fix some errors when no pings are present