Fixed error with displaying class elements.