fixed missing selection bug