fix class being rendered inside span