fixing bug where morphology and word data was being cleared