fix error manager