fix issue #263, ConstantFunctionByRegion