Fix hover and selected classes