made fix for PAPI error callback