fix stupid selection bug