Fix bug in direct ping