Fixed duplication of the initial array value in the output stream.