Fixed bug when reading chunks where it was trying to put n in a String rather than a Number.