fix json of id string and template to go to correct place