--- bugfixes: - fix bug - out of array index.There should be a judgement about array length before the value of the array is taken out.