selection bug fixed