Fixed problems with wikipedia parsing code