fixed some bugs, # Subnet in router mode