fix bug

- little array access failure