fix setkeywords method