fix array's closing bracket