fix array append