Fixed bug where Error count would be 0 when errors were recorded