bug fixing regarding PAPI