Fixing ping timeout problem