Attempt to solve sendto pointer issue