fixed bug on word set for document