fixed bug with database word field