fix server to client array issue