fix bug when editing site id 1