Fixed "Object of class %s could not be converted to double" message