fix for derived value calculation errors