Fix network id truncations