If this actually does anything then something else is wrong. The properties shouldn't be able to get into a state where the calculation generates an invalid value.