Bug fix for ping