fix #1: printf causing errors count to be wrongfully incremented