Fix crash with maximumValue/minimumValue for virtual fields