fixing max error size