fixed errors class