fix getKeywords method