Fix for only having classnames with no elements.