Remove invalid custom classes