Fix clamping in network objects to prevent many crashes