Miss casts and zeroing of integers

Since JobBytes and ReadButes are unsigned 64 bits, they need to be casted as that and to avoid undeterminate/garbage value, initialize the integers to zero.