Corrected the double value derivation