fixed p-value bug