array bound potential fix