fixed array exception bug