Bug fix for ping functionality.