fixed toDouble