fix pvalue lookup bug