Fixed bug on subnet ID retrieval