Fix handling network options