fixed bug with long class names