Fix range error when calculating FWER