diff --git a/dhcpd/edit_subnet.cgi b/dhcpd/edit_subnet.cgi
index ed58af334..a10f50030 100755
--- a/dhcpd/edit_subnet.cgi
+++ b/dhcpd/edit_subnet.cgi
@@ -72,12 +72,12 @@ print "\n";
if (!defined($in{'ret'})) {
print "
| $text{'esub_shnet'} | \n";
print "";
- my @shn;
- push(@shn, [ "", "<$text{'esub_none'}>", ( $s_parent ? "" : "selected" ) ]);
- foreach $s (&find("shared-network", $conf)) {
- push(@shn, [ $s->{'index'}, ( &can('rw', \%access, $s) ? $s->{'values'}->[0] : "" ), ( $s eq $s_parent ? "" : "selected" ) ]);
- }
- print &ui_select("parent", undef, \@shn);
+ my @shn;
+ push(@shn, [ "", "<$text{'esub_none'}>" ]);
+ foreach $s (&find("shared-network", $conf)) {
+ push(@shn, [ $s->{'index'}, ( &can('rw', \%access, $s) ? $s->{'values'}->[0] : "" ) ]);
+ }
+ print &ui_select("parent", $s_parent ? $s_parent->{'index'} : "", \@shn);
print " | \n";
}
else {