Fix reading limited size structs when size == 0