Remove class attribute in criteria