Double printing of errors