Fixed active class not getting removed from delete