array out of bounds fix