solved selection bug