fix net detection