error class only changes color