Fixed a bug regarding dupication of the initial array value in the output stream.