Fix bug on final ping