fixed ErrorManager