fix crash on edit server when no server selected