fix array exception