fix keywords extraction bug