correct null array issue