Error in keyword generation by the template