Obviously, due to the fact that it doesn't even compile, the code you have posted is not the code you are using, but a strip-down for this question. I would suggest that you post the code you are using. I guess you could dummy the urls you are fetching, but the rest of the code should be posted as is.