fixed subnet comparison bug