Fixed CSS bugs with selection