bug array out of bound