added protections so that content with less than three keywords will not...

... crash system