Fixed double logging if too many keywords