improve alert class match