add fix for boolean rangecheck