Another bug fix for refim construction.