Fixed bug in reading integer types.