Fix incorrect primitive types

Some ints should be doubles