bug fixed for array serialize