Fixed selected-class not working