Fixed severe bug in creating tag clouds when saving documents