ping display error fix

Removed obsolete code