Solved update array issues