fixed indexOutofBounds Exception when nothing is downloaded