fix for improperly matching keywords