Issue #3: Fixed a bug in simgic pval