Bugfix in setKeywords function.