Fixed reading ints.