fixed a bug in select edge