fixes edit select bug