invert selection bug fix