Fix array out of bounce