fix array issue