[bugfix] array initialization

fixed plotting.