fixed broken errors class