fix up an erroneous error callback