correctly read out int values, this fixes the wrong number of keys displayed and all other values which are ints with more than one byte