Selection bug fix.