Fixed "idx" in pdoTools::defineChunk()