Fix code using nextPut[All]: to use << or write: