fixing small issue with adding or updating words