Fixed tag modification due to keyword inputs.