Fixed a bug in the Wikipedia cleanup algorithm