avoid exception when the keyword list is empty