change the return data array index mistake