fix EditWindow