Error class was not able to remove errors - thanks scripple for reporting

Signed-off-by: emanuele <emanuele45@gmail.com>