How to fix packet loss?