fix, array out of range