fix class on wrong element preventing styling showing