Fix netcode implementation