squashing bugs in manage keywords tree, fixes #7909