Changes and fixes for attributes of double type