fix some obvious errors in the CSS class handling